package org.oxenframework.mybatis.generator;

import java.io.IOException;
import java.sql.SQLException;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
 
@SpringBootApplication
@ComponentScan(basePackages="org.oxenframework.mybatis.generator")
public class CreateSrc{
	public static void main(String[] args) throws SQLException, IOException {		
		final ApplicationContext ctx = SpringApplication.run(CreateSrc.class, args);
		SourceGenerator SourceGenerator = ctx.getBean(SourceGenerator.class);
		SourceGenerator.createApiInterfaceSource();
	}				
}
